﻿<?xml version="1.0" encoding="utf-8" ?>
<PROTOCOLS>
  <!--
  <PROTOCOL name="Sample">
    <STEP id ="1" description="Wait imei command from device">
      <WAIT_RESPONSE delay="5" length="17">
        <HEADER length="2"></HEADER>
        <DATA length="15"></DATA>
      </WAIT_RESPONSE>
    </STEP>
  </PROTOCOL>
  -->

  <PROTOCOL name="Get active page" description="Get current active page information from device">
    <TRANSACTION id="1" type="REQUEST" description="Send get active page info">
      <REQUEST delay="5" nTry="3">
        <COMMAND>SERVER_TAG</COMMAND>
        <COMMAND>GET_ACTIVE_PAGE</COMMAND>
      </REQUEST>
    </TRANSACTION>

    <TRANSACTION id="2" type="RESPONSE" description="Wait for response from device">
      <RESPONSE>
        <COMMAND>DEVICE_TAG</COMMAND>
        <COMMAND>GET_ACTIVE_PAGE</COMMAND>
        <DATA length="undefined"></DATA>
      </RESPONSE>
    </TRANSACTION>
  </PROTOCOL>

  <PROTOCOL name="Insert image data" description="Insert image binary data to device">
    <TRANSACTION id="1" type="REQUEST" description="Send insert image request">
      <REQUEST delay="5" nTry="3">
        <COMMAND>SERVER_TAG</COMMAND>
        <COMMAND>INSERT_IMAGE</COMMAND>
        <DATA>
          <PARAM></PARAM>
          <PARAM></PARAM>
        </DATA>
      </REQUEST>
    </TRANSACTION>

    <TRANSACTION id="2" type="RESPONSE" description="Wait for response from device">
      <RESPONSE>
        <COMMAND>DEVICE_TAG</COMMAND>
        <COMMAND>GET_ACTIVE_PAGE</COMMAND>
        <DATA length="undefined"></DATA>
      </RESPONSE>
    </TRANSACTION>
  </PROTOCOL>
  
</PROTOCOLS>